package android.serialport.sample;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

/**
 * Created by pengyixing on 2018/1/7.
 */

public class SerialDataBroadcastReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        Log.e("=============>", "android.intent.action.SERIALDATA");
        String serialData = intent.getStringExtra("data");
        Log.e("Brandon", serialData);
    }
}
